package com.shg.service.impl;

import java.util.LinkedHashMap;

import org.springframework.stereotype.Service;

import com.shg.bean.Channel;
import com.shg.bean.PageView;
import com.shg.bean.QueryResult;
import com.shg.service.ChannelService;

@Service
public class ChannelServiceBean extends BasiceDaoImpl<Channel> implements
		ChannelService {

	/**
	 * 分页查询频道
	 */
	public QueryResult<Channel> getView(PageView<Channel> pageView){
		 LinkedHashMap<String, String> orderby=new LinkedHashMap<String, String>();
		 orderby.put("id", "asc");
		 QueryResult<Channel> result= getPagination(Channel.class, pageView.getFirstResult(), pageView.getMaxrecord(), orderby);
		return result;
	}
}
